package com.kmproject.haifu.mvp.model.entity.beans;

import java.util.List;

public class GooglePlaceInfoTextSearchBean {

    /**
     * html_attributions : []
     * next_page_token : CqQCHAEAACAlLD79X0-27VDbmaKM9im7LWyqNnvUic4yp5kbI64OCFAfpOLrlKR_aXq8CR2DIaP-VjyyZds67sxO4CZLZupWbZthZR-PKdpFX600beyxXBHRLpXEWiXnYFGNIEw6QecHrMeNQkIlVr9xj_gzO2rvT2hNIgogNjq6NwD1RoWrCQtyc2nlgPrORUrpWbu5xLhs3e5Nkwy3sR49NBX4__dvO4JplsVHmyS-2O-3-fTTXf5K69dV7ECXuDAz4O4NNYDb5Qvc14FmpXkIdNn2pct2Cdc4MI_oxKpysxWT1TF6PkwQ-z2vT02CUBUGZGf5IX2eGiwQtghpebsl22WSpTFfcdthWkAC6JJ0uLsDZpv8W8FWUmcgn_RlCRGjRzCqRhIQFLFKQTDof8UNOQdwgJSHRxoUX3iw5CJUmN-QcG7vFHi3TX_7ibc
     * results : [{"formatted_address":"中国云南省昆明市五华区龙泉路68号","geometry":{"location":{"lat":25.0675764,"lng":102.7087419},"viewport":{"northeast":{"lat":25.06892542989273,"lng":102.7102174298927},"southwest":{"lat":25.06622577010728,"lng":102.7075177701073}}},"icon":"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png","id":"781221aa38831fdd7ed96d0e60530331f9866476","name":"伊天园","place_id":"ChIJc5eobiuC0DYRC1SiH4yVSUs","plus_code":{"compound_code":"3P95+2F 五华区 中国云南省昆明市","global_code":"7PQ43P95+2F"},"rating":4,"reference":"ChIJc5eobiuC0DYRC1SiH4yVSUs","types":["restaurant","food","point_of_interest","establishment"],"user_ratings_total":1}]
     * status : OK
     */

    private String next_page_token;
    private String status;
    private List<ResultsBean> results;

    public String getNext_page_token() {
        return next_page_token;
    }

    public void setNext_page_token(String next_page_token) {
        this.next_page_token = next_page_token;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<ResultsBean> getResults() {
        return results;
    }

    public void setResults(List<ResultsBean> results) {
        this.results = results;
    }

    public static class ResultsBean {
        /**
         * formatted_address : 中国云南省昆明市五华区龙泉路68号
         * geometry : {"location":{"lat":25.0675764,"lng":102.7087419},"viewport":{"northeast":{"lat":25.06892542989273,"lng":102.7102174298927},"southwest":{"lat":25.06622577010728,"lng":102.7075177701073}}}
         * icon : https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png
         * id : 781221aa38831fdd7ed96d0e60530331f9866476
         * name : 伊天园
         * place_id : ChIJc5eobiuC0DYRC1SiH4yVSUs
         * plus_code : {"compound_code":"3P95+2F 五华区 中国云南省昆明市","global_code":"7PQ43P95+2F"}
         * rating : 4
         * reference : ChIJc5eobiuC0DYRC1SiH4yVSUs
         * types : ["restaurant","food","point_of_interest","establishment"]
         * user_ratings_total : 1
         */

        private String formatted_address;
        private GeometryBean geometry;
        private String icon;
        private String id;
        private String name;
        private String place_id;
        private PlusCodeBean plus_code;
//        private int rating;
        private String reference;
        private int user_ratings_total;
        private List<String> types;

        public String getFormatted_address() {
            return formatted_address;
        }

        public void setFormatted_address(String formatted_address) {
            this.formatted_address = formatted_address;
        }

        public GeometryBean getGeometry() {
            return geometry;
        }

        public void setGeometry(GeometryBean geometry) {
            this.geometry = geometry;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPlace_id() {
            return place_id;
        }

        public void setPlace_id(String place_id) {
            this.place_id = place_id;
        }

        public PlusCodeBean getPlus_code() {
            return plus_code;
        }

        public void setPlus_code(PlusCodeBean plus_code) {
            this.plus_code = plus_code;
        }
//
//        public int getRating() {
//            return rating;
//        }
//
//        public void setRating(int rating) {
//            this.rating = rating;
//        }

        public String getReference() {
            return reference;
        }

        public void setReference(String reference) {
            this.reference = reference;
        }

        public int getUser_ratings_total() {
            return user_ratings_total;
        }

        public void setUser_ratings_total(int user_ratings_total) {
            this.user_ratings_total = user_ratings_total;
        }

        public List<String> getTypes() {
            return types;
        }

        public void setTypes(List<String> types) {
            this.types = types;
        }

        public static class GeometryBean {
            /**
             * location : {"lat":25.0675764,"lng":102.7087419}
             * viewport : {"northeast":{"lat":25.06892542989273,"lng":102.7102174298927},"southwest":{"lat":25.06622577010728,"lng":102.7075177701073}}
             */

            private LocationBean location;
            private ViewportBean viewport;

            public LocationBean getLocation() {
                return location;
            }

            public void setLocation(LocationBean location) {
                this.location = location;
            }

            public ViewportBean getViewport() {
                return viewport;
            }

            public void setViewport(ViewportBean viewport) {
                this.viewport = viewport;
            }

            public static class LocationBean {
                /**
                 * lat : 25.0675764
                 * lng : 102.7087419
                 */

                private double lat;
                private double lng;

                public double getLat() {
                    return lat;
                }

                public void setLat(double lat) {
                    this.lat = lat;
                }

                public double getLng() {
                    return lng;
                }

                public void setLng(double lng) {
                    this.lng = lng;
                }
            }

            public static class ViewportBean {
                /**
                 * northeast : {"lat":25.06892542989273,"lng":102.7102174298927}
                 * southwest : {"lat":25.06622577010728,"lng":102.7075177701073}
                 */

                private NortheastBean northeast;
                private SouthwestBean southwest;

                public NortheastBean getNortheast() {
                    return northeast;
                }

                public void setNortheast(NortheastBean northeast) {
                    this.northeast = northeast;
                }

                public SouthwestBean getSouthwest() {
                    return southwest;
                }

                public void setSouthwest(SouthwestBean southwest) {
                    this.southwest = southwest;
                }

                public static class NortheastBean {
                    /**
                     * lat : 25.06892542989273
                     * lng : 102.7102174298927
                     */

                    private double lat;
                    private double lng;

                    public double getLat() {
                        return lat;
                    }

                    public void setLat(double lat) {
                        this.lat = lat;
                    }

                    public double getLng() {
                        return lng;
                    }

                    public void setLng(double lng) {
                        this.lng = lng;
                    }
                }

                public static class SouthwestBean {
                    /**
                     * lat : 25.06622577010728
                     * lng : 102.7075177701073
                     */

                    private double lat;
                    private double lng;

                    public double getLat() {
                        return lat;
                    }

                    public void setLat(double lat) {
                        this.lat = lat;
                    }

                    public double getLng() {
                        return lng;
                    }

                    public void setLng(double lng) {
                        this.lng = lng;
                    }
                }
            }
        }

        public static class PlusCodeBean {
            /**
             * compound_code : 3P95+2F 五华区 中国云南省昆明市
             * global_code : 7PQ43P95+2F
             */

            private String compound_code;
            private String global_code;

            public String getCompound_code() {
                return compound_code;
            }

            public void setCompound_code(String compound_code) {
                this.compound_code = compound_code;
            }

            public String getGlobal_code() {
                return global_code;
            }

            public void setGlobal_code(String global_code) {
                this.global_code = global_code;
            }
        }
    }
}
